<template>
  <div @click="fatherFn">
      <button @click.stop="btn">.stop阻止事件冒泡</button>
      <a @click.stop.prevent href="http://www.baidu.com">阻止默认事件</a>
      <button @click.once="onceBtn">.once只触发一次处理函数</button>
  </div>
</template>

<script>
export default {
    methods:{
        fatherFn(){
            console.log('fatherFn触发了');
        },
        btn(){
            console.log('btn触发了了');
        },
        onceBtn(){
            console.log('我被触发了');
        }
    }
}
</script>

<style>

</style>